package com.whj.entity;

import java.util.Date;

public class Loan {
    private Integer id;
    private Integer userId;
    private Integer price;
    private Date createTime;
    private String img;
    private Integer status;
    private Integer term;
    private String userName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Loan{" +
                "id=" + id +
                ", userId=" + userId +
                ", price=" + price +
                ", createTime='" + createTime + '\'' +
                ", img='" + img + '\'' +
                ", status=" + status +
                ", term=" + term +
                ", userName='" + userName + '\'' +
                '}';
    }

    public Loan(Integer id, Integer userId, Integer price, Date createTime, String img, Integer status, Integer term, String userName) {
        this.id = id;
        this.userId = userId;
        this.price = price;
        this.createTime = createTime;
        this.img = img;
        this.status = status;
        this.term = term;
        this.userName = userName;
    }
    public Loan() {
    }
}
